How can I simplify 2 for loops to get a dict object value

join shbcf.ru